﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="NX5Web.admin.Main.index" %>

<div id="subApp">
    <div style="    margin: 50px auto;
    text-align: center;
    font-size: 14px;
    color: #777;
    line-height: 32px;">
        <div>{{baseinfo["Name"]}}</div>
        <div>有效期:{{baseinfo["Period"]}}</div>
        <div>授权模式:{{baseinfo["LicenceType"]==1?'教师量限定模式':'课程量限定模式'}}</div>
        <div v-if="baseinfo.LicenceType==1">授权教师量:{{baseinfo["TeacherLicence"]}}</div>
        <div v-if="baseinfo.LicenceType==2">剩余常规课量:{{baseinfo["RememberLicence"]}}</div>
        <div v-if="baseinfo.LicenceType==2">剩余保温课量:{{baseinfo["ReviewLicence"]}}</div>
    </div>
</div>


<script>
    var subApp = createApp({
        el: '#subApp',
        data() {
            return { 
                baseinfo: {
                    "Name": "",
                    "Period": "",
                    "LicenceType": "",
                    "RemeberLicence": "",
                    "ReviewLicence": "",
                    "TeacherLicence": "",
                }
            }
        },
        computed: {
        },
        methods: { 
            init() {
                loaddingPlus(true);
                ktlapi({
                    "apiurl": OT.CommandSet,
                    "action": "GetAdminBaseDat",
                    "data": {
                        CompanyId: new ktluser().userInfo().CompanyId
                    }
                }).then(res => {
                    this.baseinfo = res.data.tables[0].table[0]; 
                    loaddingPlus(false);
                });
            }
        },
        mounted: function () {
            this.init();
        }
    });
</script>